﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Utilerias
{
    public static class Textos
    {
        public static AutoCompleteStringCollection acompStatus()
        {
            var Result = new AutoCompleteStringCollection();
            foreach (var i in BLL.Operadores.OperadorCatalogoStatus.GetAll())
            {
                Result.Add(i.status); 
            }
            return Result;
        }

        public static bool ValidaOnlyNumbers(KeyPressEventArgs e)
        {
            if (char.IsDigit(e.KeyChar) || char.IsControl(e.KeyChar) || e.KeyChar == '.')
                return false;
            else
                return true;
        }
    }
}
